<%@ page language="java" contentType="text/html; charset=UTF-8"	pageEncoding="UTF-8"%>


<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="robots" content="follow, index" />
<meta name="author" content="iune co." />
<meta name="description"
	content="IUNE有最好的库存管理SaaS软件。以更快更高的准确度，跟进实时数据的访问和库存移动。" />
<meta name="keywords"
	content="库存, 存货管理, 库存管理, 仓库管理, 云ERP, 云逸ERP, 中小型企业云ERP, SaaS ERP软件/系统" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title></title>


<style type="text/css">
td {
	padding: 0px;
	width: 100px;
}

</style>

</head>
<body>


	<div class="container-fluid">

		<div class="row">
			<div class="col-sm-12 col-content">
			

			<h3>
												<button type="button" class="btn btn-default "
													data-ng-click="Model.goBack()">
													<span class="glyphicon glyphicon-arrow-left"></span> 返回
												</button>
				按组织授权<small>给组织授予相应的角色。</small>
			</h3>
			<hr>
			
			

			</div>
		</div>
		
		
		<div class="row">
			<div class="col-sm-3 col-content">
			
				<div>
					<div tree-view tree-data="dataOrg" 
						checkbox-show="false"
						text-field="sName" 
						value-field='sID' 
						parent-field='sParent'
						level-field='sLevel' 
						kind-field='sNodeKind' 
						icon-expression="{'fa-sitemap':row.sOrgKindID.value=='ogn','fa-institution':row.sOrgKindID.value=='dpt','fa-graduation-cap':row.sOrgKindID.value=='pos','fa-user-md':row.sOrgKindID.value=='psm'}"
						>
					</div>
				</div>
			</div>
			<div class="col-sm-9 col-content">
			
<div>

  <!-- Nav tabs -->
  <ul class="nav nav-tabs" role="tablist">
    <li role="presentation" class="active"><a href="#roleAdd" aria-controls="roleAdd" role="tab" data-toggle="tab">角色分配</a></li>
    <!-- 
    <li role="presentation"><a href="#permissionQuery" aria-controls="permissionQuery" role="tab" data-toggle="tab">权限查询</a></li>
	 -->
  </ul>

  <!-- Tab panes -->
  <div class="tab-content">
    <div role="tabpanel" class="tab-pane active" id="roleAdd">
											<nav class="nav">
												<ul class="pagination navbar-left buttonBar">
													<li>
														<div class="btn-group" role="toolbar">
															<button type="button" class="btn btn-info "
																data-ng-click="Model.triggerSelectRoleClick()">
																<span class="glyphicon glyphicon-plus"></span> 分配角色
															</button>
															<button type="button" class="btn btn-default"
																data-ng-disabled="dataAuthorize.currentIndex==null"
																data-ng-click="Model.triggerDeleteAuthorizeClick()"
																data-test="testvalue">
																<span class="glyphicon glyphicon-trash"></span> 删除
															</button>
														</div>
													</li>
												</ul>

					<query-like data="dataAuthorize" place-holder="模糊查询..."></query-like>

											</nav>
	
					<div class="table-responsive">
						<table class="table table-hover table-condensed" style="margin:0px;">
							<thead>
								<tr>
									<th colspan="99"  style="padding:0px;">
									</th>
								</tr>

								<tr>
									<th></th>
									<th>#</th>
									<th><input type="checkbox" data-ng-model="checkboxValue" data-ng-click="Model.checkboxClick($event)"></th>
									<th hidden="hidden">sAuthorizeRoleID</th>
									<th>角色描述</th>
									<th hidden="hidden">sOrgID</th>
									<th hidden="hidden">sOrgName</th>
									<th hidden="hidden">sOrgFID</th>
									<th>组织全路径名</th>
									<th hidden="hidden">创建者id</th>
								</tr>
							</thead>
							<tbody>
								<tr data-ng-show="row.userdata.recordState!='delete'"
									data-ng-class="{true:'active'}[dataAuthorize.currentIndex==dataAuthorize.rows.indexOf(row)]"
									data-ng-click="dataAuthorize.onRowClick(row,$event)"
									data-ng-dblclick="dataAuthorize.onRowDblclick(row,$event)" 
									data-ng-repeat="row in dataAuthorize.rows">
									<td style="width: 10px;"><span
										data-ng-show="dataAuthorize.currentIndex==dataAuthorize.rows.indexOf(row)"
										class="glyphicon glyphicon-hand-right" aria-hidden="true"></span></td>
										
									<td style="width: 10px;">{{dataAuthorize.rows.indexOf(row)+1}}<span></span></td>
									<td style="width: 50px;"><input type="checkbox" data-ng-model="row.userdata.checked"></td>

									<td style="width: 100px;" hidden="hidden"><span data-ng-bind="row.sAuthorizeRoleID.value"></span></td>
									<td style="width: 400px;"><span data-ng-bind="row.sDescription.value"></span></td>
									<td style="width: 100px;" hidden="hidden"><span data-ng-bind="row.sOrgID.value"></span></td>
									<td style="width: 110px;" hidden="hidden"><span data-ng-bind="row.sOrgName.value"></span></td>
									<td style="width: 100px;" hidden="hidden"><span data-ng-bind="row.sOrgFID.value"></span></td>
									<td style="width: 400px;"><span data-ng-bind="row.sOrgFName.value"></span></td>
									<td style="width: 100px;" hidden="hidden"><span data-ng-bind="row.sCreatorFID.value"></span></td>

									<td></td>
								</tr>

							</tbody>

							<tfoot>
								<tr>
									<th colspan="99"  style="padding:0px;">
									</th>
								</tr>
							</tfoot>

						</table>
					</div>
				<!-- 分页组件 -->

						<pag-ination data="dataAuthorize" first-text="首页" previous-text="上一页"
							next-text="下一页" last-text="末页"></pag-ination>

	
	
	</div>
    <div role="tabpanel" class="tab-pane" id="permissionQuery">...</div>
  </div>

</div>			
			
			

			</div>

		</div>
</div>




</body>

</html>

